#include "stdafx.h"
#include "CTreamentType.h"

CTreamentType::CTreamentType(DWORD ideal)
{
	m_dIdeal=ideal;
}

CTreamentType::~CTreamentType()
{}

BOOL CTreamentType::LocTreament(strstream* stream)
{
	try
	{
		if(stream)
		{
			stream->read((char*)&m_dFact,sizeof(DWORD));

			if(m_dFact==m_dIdeal)
				return TRUE;
			else if(m_dFact==-1)
				AfxEndThread(0);
			else
				return FALSE;
		}
	}
	catch(...)
	{
	}
	return FALSE;
}

DWORD CTreamentType::GetTreamentType()
{
	return m_dIdeal;
}

